#ifndef _BROWSER_H_
#define _BROWSER_H_

#include <string>
#include <vector>
#include <stdint.h>
#include "graphics.h"

extern Graphics graphics;

class Browser
{
	private:
		std::vector< std::string > filelist;
		std::string path;
		uint16_t selected;

		void fillList();
		void drawLines();
		void drawSelection();

	public:
		void setPath(std::string newpath);
		void setPath(const char *newpath);
		void redraw();
		uint16_t moveUp();
		uint16_t moveDown();
		uint16_t getSelected();
		std::string getEntry(uint16_t pos);
};

#endif /* _BROWSER_H_ */
